package com.yun.zhong.fu.sharecenter.spring_origiond_code_study;

import com.yun.zhong.fu.sharecenter.entity.Share;
import org.springframework.beans.factory.FactoryBean;
import sun.security.provider.SHA;

/**
 * @Author RenPu
 * @Date 2022/10/24 15:39
 * @Version 1.0
 * @Description:
 **/
public class ShareFactoryBean implements FactoryBean {
    @Override
    public Object getObject() throws Exception {
        Share share = new Share();
        share.setId(1);
        return share;
    }

    @Override
    public Class<?> getObjectType() {
        return Share.class;
    }
}
